<div class="storeinfo">
    <div class="nav">
        <div class="nav-li focus">店铺信息</div>
        {{#if !$Cache.admininfo.is_edit}}
        <div value="true" class="nav-li" event-click="{{'$Event.admin.to_edit'}}">修改信息</div>
        <a href="#admin/changepwd">
            <div class="nav-li">修改密码</div>
        </a>
        {{#else}}
        <div value="true" class="nav-li" event-click="{{'$Event.admin.post_edit'}}">完成</div>
        <div value="true" class="nav-li" event-click="{{'$Event.admin.cancel_edit'}}">取消</div>
        {{/if}}
    </div>
    <hr />
    <div class="info_box">
        <div class="table">
            {{#if !$Cache.admininfo.is_edit}}
            <div class="item">
                <div class="title">商家账号名：</div>
                <span class="text">{{bus_loginer.info.name}}</span>
            </div>
            <div class="item">
                <div class="title">店铺logo：</div>
                <span class="text">
                    {{#if bus_loginer.info.logo_url}}
                    <img class="logo" bind-src="{{bus_loginer.info.logo_url}}">{{#else}}
                    <em style="color:#999;">等待上传</em>
                    {{/if}}
                </span>
            </div>
            <div class="item">
                <div class="title">店铺名称：</div>
                <span class="text">{{bus_loginer.info.title}}</span>
            </div>
            <div class="item">
                <div class="title">店铺地址：</div>
                <span class="text">{{bus_loginer.info.address}}</span>
            </div>
            <div class="item">
                <div class="title">如何到达：</div>
                <span class="text">{{bus_loginer.info.way}}</span>
            </div>
            <div class="item">
                <div class="title">营业时间：</div>
                <span class="text">
                    {{bus_loginer.info.open_time.s_hour}}:{{bus_loginer.info.open_time.s_min}} - {{bus_loginer.info.open_time.e_hour}}:{{bus_loginer.info.open_time.e_min}}
                </span>
            </div>
            <div class="item">
                <div class="title">店铺邮箱：</div>
                <span class="text">{{bus_loginer.info.email}}</span>
            </div>
            <div class="item">
                <div class="title">手机：</div>
                <span class="text">{{bus_loginer.info.mobile_phone}}</span>
            </div>
            <div class="item">
                <div class="title">QQ：</div>
                <!-- 官方组件信息：http://shang.qq.com/v3/widget.html -->
                <span class="text">{{bus_loginer.info.qq||'暂无绑定'}}</span>
                <!-- <a target="_blank" href="http://shang.qq.com">QQ互动代码申请</a> -->
            </div>
            <div class="item">
                <div class="title">店铺介绍：</div>
                <span class="text">{{bus_loginer.info.intro}}</span>
            </div>
            <div class="item">
                <div class="title">门面图片：</div>
                <span class="text">
                    {{#if bus_loginer.info.store_imgs.length}}
                        {{#each bus_loginer.info.store_imgs}}
                        <img src="{{href}}" style="width:100px;height:100px;" title="">
                        {{/each}}
                    {{#else}}
                        <small>暂无上传门面图片</small>
                    {{/if}}
                </span>
            </div>
            <div class="item">
                <div class="title">合作物流：</div>
                <span class="text">{{bus_loginer.info.logistics}}</span>
            </div>
            <div class="item">
                <button class="btn" event-click="{{'$Event.check_alipay_info'}}">支付宝信息</button>
                <button class="btn" event-click="{{'$Event.check_tenpay_info'}}">财付通信息</button>
            </div>
            <div class="payinfobox {{Private1}}">
                <div class="payitem1 {{Private2}}">
                    <fieldset>
                        <legend>商家支付宝信息</legend>
                        <p>注释：用于在线支付功能，绑定正确的商家支付宝信息，顾客就可以在线支付。</p>
                        <div class="item">
                            <div class="title">卖家支付宝帐户：</div>
                            <!-- seller_email,partner,key -->
                            <div>
                                <span class="text">{{bus_loginer.info.alipay.seller_email?'已绑定':'未绑定'}}</span>
                            </div>
                        </div>
                        <div class="item">
                            <div class="title">合作身份者id：</div>
                            <div>
                                <span class="text">{{bus_loginer.info.alipay.partner?'已绑定':'未绑定'}}</span>
                            </div>
                        </div>
                        <div class="item">
                            <div class="title">安全检验码：</div>
                            <div>
                                <span class="text">{{bus_loginer.info.alipay.key?'已绑定':'未绑定'}}</span>
                            </div>
                        </div>
                    </fieldset>
                </div>
                <div class="payitem2">
                    <fieldset>
                        <legend>商家财付通信息</legend>
                        <p>注释：用于在线支付功能，绑定正确的商家财付通信息，顾客就可以在线支付。</p>
                        <div class="item">
                            <div class="title">商务号：</div>
                            <div>
                                <span class="text">{{bus_loginer.info.tenpay.appid?'已绑定':'未绑定'}}</span>
                            </div>
                        </div>
                        <div class="item">
                            <div class="title">密钥（32位字符）：</div>
                            <div>
                                <span class="text">{{bus_loginer.info.tenpay.key?'已绑定':'未绑定'}}</span>
                            </div>
                        </div>
                    </fieldset>
                </div>
                <div class="item">
                    <button class="btn" event-click="{{'$Event.close_pay_info'}}">收起</button>
                </div>
            </div>
            {{#else}}
            <div class="item">
                <div class="title">商家账号名：</div>
                <span class="text">
                    <input type="text" value="{{bus_loginer.info.name}}" bind-input="{{'bus_loginer.info.name'}}">
                </span>
            </div>
            <div class="item">
                <div class="title">店铺logo：</div>
                <span class="text">
                    {{#if bus_loginer.info.logo_url}}
                    <img class="logo" bind-src="{{bus_loginer.info.logo_url}}">{{#else}}
                    <em style="color:#999;">等待上传</em>
                    {{/if}}
                </span>
                <img-uploader upload-server-url="{{config.other.upload_image}}" text="选择logo" bind-input-key="bus_loginer.info.logo_url" bind-status="{{'$Cache.admininfo.logo_url_upload_status'}}" one-way="true" style="display:inline-block;" max-width="512">
                </img-uploader>
            </div>
            <div class="item">
                <div class="title">店铺名称：</div>
                <span class="text">
                    <input type="text" value="{{bus_loginer.info.title}}" bind-input="{{'bus_loginer.info.title'}}">
                </span>
            </div>
            <div class="item">
                <div class="title">店铺地址：</div>
                <span class="text">
                    <input type="text" value="{{bus_loginer.info.address}}" bind-input="{{'bus_loginer.info.address'}}">
                </span>
            </div>
            <div class="item">
                <div class="title">如何到达：</div>
                <span class="text">
                    <input type="text" value="{{bus_loginer.info.way}}" bind-input="{{'bus_loginer.info.way'}}">
                </span>
            </div>
            <div class="item">
                <div class="title">营业时间：</div>
                <span class="text">
                    <input placeholder="{{bus_loginer.info.open_time.s_hour}}" class="open-time" type="number" min="0" max="24" bind-input="{{'bus_loginer.info.open_time.s_hour'}}" name="start_hour" />:
                    <input placeholder="{{bus_loginer.info.open_time.s_min}}" class="open-time" type="number" min="0" max="60" bind-input="{{'bus_loginer.info.open_time.s_min'}}" name="start_minute">-
                    <input placeholder="{{bus_loginer.info.open_time.e_hour}}" class="open-time" type="number" min="0" max="24" bind-input="{{'bus_loginer.info.open_time.e_hour'}}" name="end_hour" />:
                    <input placeholder="{{bus_loginer.info.open_time.e_min}}" class="open-time" type="number" min="0" max="60" bind-input="{{'bus_loginer.info.open_time.e_min'}}" name="end_minute">
                </span>
            </div>
            <div class="item">
                <div class="title">店铺邮箱：</div>
                <span class="text">
                    <input type="text" value="{{bus_loginer.info.email}}" bind-input="{{'bus_loginer.info.email'}}">
                </span>
            </div>
            <div class="item">
                <div class="title">手机：</div>
                <span class="text">
                    <input type="text" value="{{bus_loginer.info.mobile_phone}}" bind-input="{{'bus_loginer.info.mobile_phone'}}">
                </span>
            </div>
            <div class="item">
                <div class="title">QQ：</div>
                <span class="text">
                    <input type="text" value="{{bus_loginer.info.qq}}" bind-input="{{'bus_loginer.info.qq'}}">
                </span>
            </div>
            <div class="item">
                <div class="title">店铺介绍：</div>
                <span class="text">
                    <input type="text" value="{{bus_loginer.info.intro}}" bind-input="{{'bus_loginer.info.intro'}}">
                </span>
            </div>
            <div class="item">
                <div class="title">门面图片：</div>
                <img-uploader bind-input-key="bus_loginer.info.store_imgs.0.href" url="{{bus_loginer.info.store_imgs.0.href}}" bind-status="{{'status'}}" text="选择门面图片1" style="display:inline-block" max-width="512">
                </img-uploader>
                <img-uploader bind-input-key="bus_loginer.info.store_imgs.1.href" url="{{bus_loginer.info.store_imgs.1.href}}" bind-status="{{'status'}}" text="选择门面图片2" style="display:inline-block" max-width="512">
                </img-uploader>
                <img-uploader bind-input-key="bus_loginer.info.store_imgs.2.href" url="{{bus_loginer.info.store_imgs.2.href}}" bind-status="{{'status'}}" text="选择门面图片3" style="display:inline-block" max-width="512">
                </img-uploader>
                <img-uploader bind-input-key="bus_loginer.info.store_imgs.3.href" url="{{bus_loginer.info.store_imgs.3.href}}" bind-status="{{'status'}}" text="选择门面图片4" style="display:inline-block" max-width="512">
                </img-uploader>
                <img-uploader bind-input-key="bus_loginer.info.store_imgs.4.href" url="{{bus_loginer.info.store_imgs.4.href}}" bind-status="{{'status'}}" text="选择门面图片5" style="display:inline-block" max-width="512">
                </img-uploader>
            </div>
            <div class="item">
                <div class="title">合作物流：</div>
                <span class="text">
                    <input type="text" value="{{bus_loginer.info.logistics}}" bind-input="{{'bus_loginer.info.logistics'}}">
                </span>
            </div>
            <div class="item">
                <button class="btn" event-click="{{'$Event.check_alipay_info'}}">支付宝信息</button>
                <button class="btn" event-click="{{'$Event.check_tenpay_info'}}">财付通信息</button>
            </div>
            <div class="payinfobox {{Private1}}">
                <div class="payitem1 {{Private2}}">
                    <fieldset>
                        <legend>商家支付宝信息</legend>
                        <p>注释：用于在线支付功能，绑定正确的商家支付宝信息，顾客就可以在线支付。</p>
                        <div class="item">
                            <div class="title">卖家支付宝帐户：</div>
                            <div>
                                <span class="text">
                                    <input type="text" bind-input="{{'bus_loginer.info.alipay.seller_email'}}">
                                </span>
                            </div>
                        </div>
                        <div class="item">
                            <div class="title">合作身份者id：</div>
                            <div>
                                <span class="text">
                                    <input type="text" bind-input="{{'bus_loginer.info.alipay.partner'}}">
                                </span>
                            </div>
                        </div>
                        <div class="item">
                            <div class="title">安全检验码：</div>
                            <div>
                                <span class="text">
                                    <input type="text" bind-input="{{'bus_loginer.info.alipay.key'}}">
                                </span>
                            </div>
                        </div>
                    </fieldset>
                </div>
                <div class="payitem2">
                    <fieldset>
                        <legend>商家财付通信息</legend>
                        <p>注释：用于在线支付功能，绑定正确的商家财付通信息，顾客就可以在线支付。</p>
                        <div class="item">
                            <div class="title">商务号：</div>
                            <div>
                                <span class="text">
                                    <input type="text" bind-input="{{'bus_loginer.info.tenpay.appid'}}">
                                </span>
                            </div>
                        </div>
                        <div class="item">
                            <div class="title">密钥（32位字符）：</div>
                            <div>
                                <span class="text">
                                    <input type="text" bind-input="{{'bus_loginer.info.tenpay.key'}}">
                                </span>
                            </div>
                        </div>
                    </fieldset>
                </div>
                <div class="item">
                    <button class="btn" event-click="{{'$Event.close_pay_info'}}">收起</button>
                </div>
            </div>
            {{/if}}
        </div>
    </div>
</div>
